package cn.edu.scau.cmi.yangjiamin.abstractfactory;

public abstract class AutoInsuranceFactory {
	public abstract PICC getPICC();
	public abstract PingAn getPingAn();
	public static  AutoInsuranceFactory getAutoInsuranceFactory(String type) {
		AutoInsuranceFactory af = null;
		if(type == "身体受伤") af = new BodyInjureFactory();
		else if(type == "汽车损坏") af = new CarDamagedFactory();
		else if(type == "人员伤亡") af = new CasualtiesFactory();
		else if(type == "多种事故") af = new ManyAccidentFactory();
		return af;
	}

}
 